package Cn.Sarkar.MMS.DataBaseDefinations.Independent

import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.*
import Cn.Sarkar.MMS.DataBaseDefinations.Additional.ThirdPartyAccounts
import Cn.Sarkar.MMS.DataBaseDefinations.Independent.Permission.PermissionGroups
import Cn.Sarkar.Entities.Common.Table

object Accounts : Table("Account") {
    override var Comment: String = "ھىسابات"
//    val Applications: MutableList<IApplication>
    val ThirdPartyID = intColumn("ThirdPartyID") unsigned true notNull false reference ThirdPartyAccounts.ID comment "ئۈچىنچى تەرەپ ھىساباتى"
    val SignInName = stringColumn("SignInName") isN true notNull true size 32 comment "كىرىش ئىسمى"
    val Pwd = stringColumn("Pwd") isN true notNull true size 32 comment "پارول"
    val PersonID = intColumn("PersonID") unsigned true notNull true reference Persons.ID comment "ھىسابات ئىگىسى"
    val PermissionID = intColumn("PermissionID") reference PermissionGroups.ID comment "ھوقوق"
//    val Wallets: MutableList<IWallet>

    override val CATEGORY: Int = 8
}